package com.iflytek.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.iflytek.common.Result;
import com.iflytek.dto.PageDTO;
import com.iflytek.dto.PermissionDTO;
import com.iflytek.model.Permission;
import com.iflytek.vo.PageVO;
import com.iflytek.vo.PermissionVO;

import java.util.List;

/**
 * <p>
 * 权限菜单表 服务类
 * </p>
 *
 * @author h_t
 * @since 2023-09-23
 */
public interface PermissionService extends IService<Permission> {


    Result<List<PermissionVO>> findAll();

    Result<Boolean> savePermission(PermissionDTO dto);

    Result<Boolean> updatePermission(PermissionDTO dto);

    Result<PermissionVO> findById(Long id);

    Result<List<PermissionVO>> getByRoles(PermissionDTO dto);

    Result<PermissionVO> deleteById(Long id);

    Result<PageVO<PermissionVO>> findPage(PageDTO<PermissionDTO> dto);
}